<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/commonPage/common.jsp"%>
<link rel="stylesheet" href="${base }/style/index.css">
<html>
<style>
	.outer-container {
		position: relative;
		overflow: hidden;
	}
</style>
<body>
	<div class="nav-bar-div" style=" position: fixed; top: 0; z-index: 99; overflow: hidden;">
		<ul id="logo-bar">
			<img src="${base}/pics/logo_2.png">
		</ul>
		<ul class="layui-nav nav-bar" id="navBar" lay-filter="">
			<li class="layui-nav-item layui-this" url="mainPage"
				onclick=navbarChange(this)>首页</li>
			<li class="layui-nav-item" url="unionIntroduce"
				onclick=navbarChange(this)>联盟介绍</li>
			<li class="layui-nav-item" url="unionDynamic"
				onclick=navbarChange(this)>最新动态</li>
			<li class="layui-nav-item" url="newPolicy" onclick=navbarChange(this)>最新政策</li>
			<li class="layui-nav-item"
				url="http://www.moe.gov.cn/srcsite/A08/s5672/201803/t20180309_329447.html?from=timeline&isappinstalled=0"
				onclick=navbarChange(this)>互联网+</li>
		</ul>
	</div>
	<div class="outer-container" style="height: 100%;">
		<iframe id="myFrame"  marginWidth=0 marginHeight=0 src="mainPage"  scrolling="auto" frameBorder=0 width="100%" height="100%" style="border: solid 0 #aaa; overflow: hidden;"></iframe>
	</div>
</body>
<script>

var base='${base}';

//注意：导航 依赖 element 模块，否则无法进行功能性操作
layui.use('element', function(){
  var element = layui.element;
  
  

});

function navbarChange(li) {
	$("#navBar").children("*").removeClass("layui-this");
	//var dom = $("#navBar").children("."+li.innerHTML);
	$(li).addClass("layui-this");
	var x = $(li).attr("url");
	$("#myFrame").attr("src",x)
}

function navbarChangeFormIframe(url){ //实现从iframe页面点击链接，导航栏实现相应的跳转
	$("#navBar").children("*").removeClass("layui-this");
	$("#navBar li[url="+url+"]").addClass("layui-this");
	var x = $("#navBar li[url="+url+"]").attr("url");
	$("#myFrame").attr("src",x);
}

</script>
<script type="text/javascript">
	/*7Core-CN - 网页鼠标点击特效（爱心）*/
	!function (e, t, a) {function r() {for (var e = 0; e < s.length; e++) s[e].alpha <= 0 ? (t.body.removeChild(s[e].el), s.splice(e, 1)) : (s[e].y--, s[e].scale += .004, s[e].alpha -= .013, s[e].el.style.cssText = "left:" + s[e].x + "px;top:" + s[e].y + "px;opacity:" + s[e].alpha + ";transform:scale(" + s[e].scale + "," + s[e].scale + ") rotate(45deg);background:" + s[e].color + ";z-index:99999");requestAnimationFrame(r)}function n() {var t = "function" == typeof e.onclick && e.onclick;e.onclick = function (e) {t && t(), o(e)}}function o(e) {var a = t.createElement("div");a.className = "heart", s.push({el: a,x: e.clientX - 5,y: e.clientY - 5,scale: 1,alpha: 1,color: c()}), t.body.appendChild(a)}function i(e) {var a = t.createElement("style");a.type = "text/css";try {a.appendChild(t.createTextNode(e))} catch (t) {a.styleSheet.cssText = e}t.getElementsByTagName("head")[0].appendChild(a)}function c() {return "rgb(" + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + "," + ~~(255 * Math.random()) + ")"}var s = [];e.requestAnimationFrame = e.requestAnimationFrame || e.webkitRequestAnimationFrame || e.mozRequestAnimationFrame || e.oRequestAnimationFrame || e.msRequestAnimationFrame || function (e) {setTimeout(e, 1e3 / 60)}, i(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"), n(), r()}(window, document);
</script>
</html>
